package com.example.user.feign;

import com.example.user.feign.impl.ArticleFeignBack;
import com.usian.model.article.dtos.ApArticleCheckedDto;
import com.usian.model.article.pojos.ApAuthor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-article",fallback = ArticleFeignBack.class)
public interface ArticleFeign {

    @PostMapping("article/v1/get_apauthor")
    public ApAuthor getApAuthor(@RequestBody ApArticleCheckedDto apArticleCheckedDto);
}
